package com.conversationboard.model;

import com.conversationboard.serialisation.XmlSerialiser;

public class UserProfile {

    private String fullName = "";
    private String email = "";
    private String location = "";
    private String websiteUrl = "";
    private String info = "";


    public String getFullName() {
        return fullName;
    }


    public void setFullName(String fullName) {
        this.fullName = fullName;
    }


    public String getLocation() {
        return location;
    }


    public void setLocation(String location) {
        this.location = location;
    }


    public String getInfo() {
        return info;
    }


    public void setInfo(String text) {
        this.info = text;
    }


    public String getWebsiteUrl() {
        return websiteUrl;
    }


    public void setWebsiteUrl(String websiteUrl) {
        this.websiteUrl = websiteUrl;
    }

    

    public String getEmail() {
        return email;
    }


    public void setEmail(String email) {
        this.email = email;
    }


    public static UserProfile deserialise(String xml) {

        XmlSerialiser<UserProfile> serialiser = new XmlSerialiser<UserProfile>();
        serialiser.setAlias("UserProfile", UserProfile.class);
        UserProfile userProfile = serialiser.deSerialise(xml);

        return userProfile;
    }


    public String serialise() {

        XmlSerialiser<UserProfile> serialiser = new XmlSerialiser<UserProfile>();
        serialiser.setAlias("UserProfile", UserProfile.class);

        String xml = serialiser.serialise(this);

        return xml;
    }

}
